<?php
$o = 1;
if(!is_writable($baseurl.'temp/'))
	$nonWrite[] = 'temp/';
if(!is_writable($baseurl.'.htaccess'))
	$nonWrite[] = '.htaccess';
if(!is_writable($baseurl.'uploaded-files/'))
	$nonWrite[] = 'uploaded-files/';
if(!is_writable($baseurl.'uploaded-files/_thumbs/'))
	$nonWrite[] = 'uploaded-files/_thumbs/';
if(is_array($nonWrite)) {
	foreach($nonWrite as $value) {
		$o = 0;
		echo "<div class='error'>$value isn't writeable. Please chmod it to 0755 or 0777 for LemurCMS to continue.</div>";
	}
}
if(phpversion() >= 5.2){}
else { $o = 0;
	echo '<div class="error">You have PHP version '.phpversion().' which isn\'t high enough to run LemurCMS. Installation cannot continue.</div>';
}
if(!function_exists("gd_info")) { $o = 0;
	echo '<div class="error">You don\'t have the PHP GD image library which isn\'t sufficent to run LemurCMS. Installation cannot continue.</div>';
}
if($o == 0)
	exit();
?>